<?php

namespace App\Modules\Coupon\Models;


use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class UserCoupon
 * @package App\Modules\Coupon\Models
 * @property int $user_id
 * @property int $coupon_id
 * @property string $type
 * @property string $title
 * @property integer $price_limit
 * @property int $money
 * @property array $applicable
 * @property string $expiration_date
 * @property integer $use_id
 * @property string $use_time
 * @property int $is_gift
 */
class UserCoupon extends Model
{
    use SoftDeletes;

    protected $fillable = [
        'shop_id',
        'user_id',
        'coupon_id',
        'type',
        'title',
        'price_limit',
        'money',
        'applicable',
        'expiration_date',
        'use_id',
        'use_time',
        'is_gift'
    ];

    protected $casts = [
        'applicable' => 'array',
    ];
}